Skip to content

Commit

Permalink
Move Logger out of Shared.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpulver authored and andrewseidl committed Sep 15, 2020
1 parent 847505e commit 6eaefcd
Show file tree
Hide file tree
Showing 151 changed files with 195 additions and 177 deletions.
2 changes: 1 addition & 1 deletion Analyzer/Analyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef ANALYZER_H
#define ANALYZER_H

#include "../Shared/Logger.h"
#include "../Logger/Logger.h"

#include <cstdint>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion Archive/S3Archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <fstream>
#include <memory>

#include "Shared/Logger.h"
#include "Logger/Logger.h"

int S3Archive::awsapi_count;
std::mutex S3Archive::awsapi_mtx;
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ add_subdirectory(QueryEngine)
add_subdirectory(DataMgr)
add_subdirectory(CudaMgr)
add_subdirectory(LockMgr)
add_subdirectory(Logger)
add_subdirectory(MigrationMgr)
add_subdirectory(Fragmenter)
add_subdirectory(Shared)
Expand All @@ -599,7 +600,7 @@ if(ENABLE_ODBC)
add_subdirectory(ODBC)
endif()

set(MAPD_LIBRARIES Shared Catalog SqliteConnector MigrationMgr TableArchiver Parser Analyzer ImportExport QueryRunner QueryEngine QueryState LockMgr DataMgr Fragmenter)
set(MAPD_LIBRARIES Shared Catalog SqliteConnector MigrationMgr TableArchiver Parser Analyzer ImportExport QueryRunner QueryEngine QueryState LockMgr DataMgr Fragmenter Logger)

if("${MAPD_EDITION_LOWER}" STREQUAL "ee")
list(APPEND MAPD_LIBRARIES Distributed)
Expand Down
2 changes: 1 addition & 1 deletion Calcite/Calcite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "Calcite.h"
#include "Catalog/Catalog.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "Shared/SystemParameters.h"
#include "Shared/ThriftClient.h"
#include "Shared/fixautotools.h"
Expand Down
2 changes: 1 addition & 1 deletion Catalog/DBObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <string>
#include <unordered_set>
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Catalog_Namespace {
class Catalog;
Expand Down
2 changes: 1 addition & 1 deletion Catalog/Grantee.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <map>
#include <string>
#include <unordered_set>
#include "Shared/Logger.h"
#include "Logger/Logger.h"

class User;
class Role;
Expand Down
1 change: 1 addition & 0 deletions Catalog/OptionsContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"

#include "Logger/Logger.h"
#include "Shared/StringTransform.h"

namespace foreign_storage {
Expand Down
2 changes: 1 addition & 1 deletion Catalog/SharedDictionaryValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <memory>

#include "Shared/Logger.h"
#include "Logger/Logger.h"

const Parser::SharedDictionaryDef compress_reference_path(
Parser::SharedDictionaryDef cur_node,
Expand Down
2 changes: 1 addition & 1 deletion CudaMgr/CudaMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <iostream>
#include <stdexcept>

#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace CudaMgr_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion CudaMgr/CudaMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include <string>
#include <vector>

#include "Logger/Logger.h"
#include "Shared/DeviceGroup.h"
#include "Shared/Logger.h"

#ifdef HAVE_CUDA
#include <cuda.h>
Expand Down
2 changes: 1 addition & 1 deletion CudaMgr/CudaMgrNoCuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include "CudaMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace CudaMgr_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/AbstractBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "Encoder.h"
#include "MemoryLevel.h"

#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "Shared/sqltypes.h"
#include "Shared/types.h"

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/Allocators/CudaAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <CudaMgr/CudaMgr.h>
#include <DataMgr/DataMgr.h>
#include <Shared/Logger.h>
#include <Logger/Logger.h>
#include <Shared/types.h>

CudaAllocator::CudaAllocator(Data_Namespace::DataMgr* data_mgr, const int device_id)
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/Allocators/DeviceAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma once

#include "Shared/Logger.h"
#include "Logger/Logger.h"

#ifdef HAVE_CUDA
#include <cuda.h>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/Allocators/ThrustAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "CudaMgr/CudaMgr.h"
#include "DataMgr/Allocators/CudaAllocator.h"
#include "DataMgr/DataMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

int8_t* ThrustAllocator::allocate(std::ptrdiff_t num_bytes) {
VLOG(1) << "Thrust allocation: Device #" << device_id_ << " Allocation #"
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/ArrayNoneEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef ARRAY_NONE_ENCODER_H
#define ARRAY_NONE_ENCODER_H

#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <cassert>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/BufferMgr/Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <stdexcept>

#include "DataMgr/BufferMgr/BufferMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Buffer_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/BufferMgr/BufferMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <limits>

#include "DataMgr/BufferMgr/Buffer.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "Shared/measure.h"

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/BufferMgr/CpuBufferMgr/CpuBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <cstring>

#include "CudaMgr/CudaMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Buffer_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/BufferMgr/GpuCudaBufferMgr/GpuCudaBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <cassert>

#include "CudaMgr/CudaMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Buffer_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/BufferMgr/GpuCudaBufferMgr/GpuCudaBufferMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include "CudaMgr/CudaMgr.h"
#include "DataMgr/BufferMgr/GpuCudaBufferMgr/GpuCudaBuffer.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Buffer_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/ChunkMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "../Shared/sqltypes.h"
#include "Shared/types.h"

#include "Shared/Logger.h"
#include "Logger/Logger.h"

struct ChunkStats {
Datum min;
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/DateDaysEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef DATE_DAYS_ENCODER_H
#define DATE_DAYS_ENCODER_H

#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/Encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "DateDaysEncoder.h"
#include "FixedLengthArrayNoneEncoder.h"
#include "FixedLengthEncoder.h"
#include "Logger/Logger.h"
#include "NoneEncoder.h"
#include "Shared/Logger.h"
#include "StringNoneEncoder.h"

Encoder* Encoder::Create(Data_Namespace::AbstractBuffer* buffer,
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/FileMgr/FileBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <iostream>
#include <stdexcept>

#include "Shared/Logger.h"
#include "Logger/Logger.h"

using namespace Data_Namespace;

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/FileMgr/FileInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
#include <set>
#include <vector>
#include "../../Shared/types.h"
#include "Logger/Logger.h"
#include "Page.h"
#include "Shared/Logger.h"

namespace File_Namespace {

Expand Down
2 changes: 1 addition & 1 deletion DataMgr/FileMgr/Page.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifndef DATAMGR_MEMORY_FILE_PAGE_H
#define DATAMGR_MEMORY_FILE_PAGE_H

#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <cassert>
#include <deque>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/FixedLengthArrayNoneEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef FIXED_LENGTH_ARRAY_NONE_ENCODER_H
#define FIXED_LENGTH_ARRAY_NONE_ENCODER_H

#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <cassert>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/FixedLengthEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#ifndef FIXED_LENGTH_ENCODER_H
#define FIXED_LENGTH_ENCODER_H
#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/ForeignStorage/ArrowCsvForeignStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "Catalog/DataframeTableDescriptor.h"
#include "DataMgr/ForeignStorage/ForeignStorageInterface.h"
#include "DataMgr/StringNoneEncoder.h"
#include "Logger/Logger.h"
#include "QueryEngine/ArrowResultSet.h"
#include "Shared/ArrowUtil.h"
#include "Shared/Logger.h"
#include "Shared/measure.h"

struct Frag {
Expand Down
2 changes: 1 addition & 1 deletion DataMgr/StringNoneEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
**/
#ifndef STRING_NONE_ENCODER_H
#define STRING_NONE_ENCODER_H
#include "Shared/Logger.h"
#include "Logger/Logger.h"

#include <cassert>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion Distributed/os/LeafAggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "QueryEngine/TargetMetaInfo.h"
#include "gen-cpp/OmniSci.h"

#include "Shared/Logger.h"
#include "Logger/Logger.h"

namespace Catalog_Namespace {
class SessionInfo;
Expand Down
2 changes: 1 addition & 1 deletion Embedded/DBEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include <boost/variant.hpp>
#include <iostream>
#include "Catalog/Catalog.h"
#include "Logger/Logger.h"
#include "QueryEngine/CompilationOptions.h"
#include "QueryEngine/ResultSet.h"
#include "QueryRunner/QueryRunner.h"
#include "Shared/Logger.h"
#include "Shared/mapdpath.h"
#include "Shared/sqltypes.h"

Expand Down
2 changes: 1 addition & 1 deletion Fragmenter/InsertOrderFragmenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "DataMgr/AbstractBuffer.h"
#include "DataMgr/DataMgr.h"
#include "LockMgr/LockMgr.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "Shared/checked_alloc.h"
#include "Shared/thread_count.h"

Expand Down
2 changes: 1 addition & 1 deletion Fragmenter/UpdelStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include "DataMgr/DataMgr.h"
#include "DataMgr/FixedLengthArrayNoneEncoder.h"
#include "Fragmenter/InsertOrderFragmenter.h"
#include "Logger/Logger.h"
#include "QueryEngine/Execute.h"
#include "QueryEngine/TargetValue.h"
#include "Shared/DateConverters.h"
#include "Shared/Logger.h"
#include "Shared/TypedDataAccessors.h"
#include "Shared/thread_count.h"
#include "TargetValueConvertersFactories.h"
Expand Down
6 changes: 3 additions & 3 deletions ImportExport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(EXPORT_SOURCES

add_library(ImportExport ${GDAL_SOURCES} ${IMPORT_SOURCES} ${EXPORT_SOURCES} ${S3Archive})

target_link_libraries(ImportExport mapd_thrift Shared Catalog DataMgr StringDictionary ${GDAL_LIBRARIES} ${CMAKE_DL_LIBS}
target_link_libraries(ImportExport mapd_thrift Logger Shared Catalog DataMgr StringDictionary ${GDAL_LIBRARIES} ${CMAKE_DL_LIBS}
${LibArchive_LIBRARIES} ${IMPORT_EXPORT_LIBRARIES} ${Arrow_LIBRARIES})

install(DIRECTORY ${CMAKE_SOURCE_DIR}/ThirdParty/gdal-data DESTINATION "ThirdParty")
Expand All @@ -34,9 +34,9 @@ add_library(RowToColumn RowToColumnLoader.cpp RowToColumnLoader.h DelimitedParse
target_link_libraries(RowToColumn ThriftClient)

add_executable(StreamImporter StreamImporter.cpp)
target_link_libraries(StreamImporter RowToColumn mapd_thrift Shared ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${PROFILER_LIBS})
target_link_libraries(StreamImporter RowToColumn mapd_thrift Logger Shared ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${PROFILER_LIBS})

add_executable(KafkaImporter KafkaImporter.cpp)
target_link_libraries(KafkaImporter RowToColumn mapd_thrift ${RdKafka_LIBRARIES} Shared ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${PROFILER_LIBS})
target_link_libraries(KafkaImporter RowToColumn mapd_thrift ${RdKafka_LIBRARIES} Logger Shared ${CMAKE_DL_LIBS} ${Boost_LIBRARIES} ${PROFILER_LIBS})

install(TARGETS StreamImporter KafkaImporter DESTINATION bin)
2 changes: 1 addition & 1 deletion ImportExport/DelimitedParserUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <string_view>

#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "StringDictionary/StringDictionary.h"

namespace {
Expand Down
2 changes: 1 addition & 1 deletion ImportExport/GDAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <gdal.h>
#include <gdal_priv.h>

#include <Shared/Logger.h>
#include <Logger/Logger.h>
#include <Shared/mapdpath.h>

namespace import_export {
Expand Down
2 changes: 1 addition & 1 deletion ImportExport/Importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
#include "ArrowImporter.h"
#include "ImportExport/DelimitedParserUtils.h"
#include "ImportExport/GDAL.h"
#include "Logger/Logger.h"
#include "QueryEngine/TypePunning.h"
#include "Shared/Logger.h"
#include "Shared/SqlTypesLayout.h"
#include "Shared/geo_compression.h"
#include "Shared/geo_types.h"
Expand Down
2 changes: 1 addition & 1 deletion ImportExport/Importer.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include "DataMgr/Chunk/Chunk.h"
#include "Fragmenter/Fragmenter.h"
#include "ImportExport/CopyParams.h"
#include "Shared/Logger.h"
#include "Logger/Logger.h"
#include "Shared/ThreadController.h"
#include "Shared/checked_alloc.h"
#include "Shared/fixautotools.h"
Expand Down
Loading

0 comments on commit 6eaefcd

Please sign in to comment.